<%@ include file="/WEB-INF/jsp/include.jsp" %>
<c:set var="curWaresGroups" value="${waresGroups}" scope="page"/>
<c:forEach var="wareGroup" items="${curWaresGroups}">
    <li class="closed">
        <span class="folder"><span class="hidden_id">${wareGroup.id}</span><c:out value="${wareGroup.name}"/></span>
        <c:if test="${not empty wareGroup.childs}">
            <ul>
                <c:set var="waresGroups" value="${wareGroup.childs}" scope="request"/>
                <c:import url="waresGroupsBlock.jsp"/>
                <%--<c:import url="waresGroupsBlock.jsp">--%>
                    <%--<c:param name="waresGroups" value="wareGroup.childs"/>--%>
                <%--</c:import>--%>
            </ul>
        </c:if>
    </li>
</c:forEach>